/*
 * Copyright (c)Shanghai Easy Deal Foreign Currency Exchange Co., Ltd.
 */
package com.ttc.controller.customer;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;

/**
 * @author benny
 * @date 2016/6/14
 * @description
 */
@Controller
@RequestMapping("/")
public class CustomerController {

    @RequestMapping(value = "/customer", method = RequestMethod.GET)
    public void getUser(HttpServletRequest request,Model model)
    {

        model.addAttribute("user", "bnenny233");
        String id = request.getParameter("id");
        if(id.equals("2")){
            System.out.println("hello");
        }
        System.out.println("对不起出错了");
    }
}
